﻿using System.Collections.Generic;

namespace ZilLion.Service.Core.WebSocket.Interface
{
    public interface IMessagePersistenceHandle
    {
        /// <summary>
        ///     保存信息
        /// </summary>
        /// <param name="clientKey"></param>
        /// <param name="socketMessage"></param>
        void SaveMessage(string clientKey, SocketMessage socketMessage);

        /// <summary>
        ///     获取信息
        /// </summary>
        /// <param name="clientKey"></param>
        IList<SocketMessage> GetMessage(string clientKey);
    }
}